package com.leancloud.circle;

import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.leancloud.circle.fragment.CircleFragment;
import com.leancloud.circle.fragment.DiscussFragment;
import com.leancloud.circle.fragment.TopicFragment;
import com.leancloud.circle.manage.CircleGlobal;

import tech.com.commoncore.basecomponent.service.ICircleService;

/**
 * Anthor:NiceWind
 * Time:2019/3/25
 * Desc:The ladder is real, only the climb is all.
 */
public class CircleService implements ICircleService {

    //话题
    @Override
    public Fragment newEntryFragment(Bundle bundle) {
        return DiscussFragment.newInstance();
    }

    @Override
    public Fragment getCircleListFragment(Bundle bundle) {
        return CircleFragment.newInstance();
    }

    @Override
    public Fragment geTopic(Bundle bundle) {
        return TopicFragment.newInstance();
    }

    @Override
    public int getFollowCount() {
        return CircleGlobal.getConcerneds().size();
    }

    @Override
    public int getFanceCount() {
        return CircleGlobal.getFans().size();
    }

    @Override
    public int getReleaseCount() {
        return 0;
    }
}
